/* 此文件为脚本生成，请勿手动修改，有问题请找李良云 */

/* eslint-disable */

// @ts-nocheck

type RequestOptions = {
  requestProps?: Record<string, any>
  apiVersion?: string
}
/* 华天云测 API文档,1.0 */
import http from '@/configs/request'
import {
  SettlementRuleDTO,
  SingleResponseVoid,
  RoleDTO,
  PaymentTransactionTypeDTO,
  SingleResponse,
  PaymentThirdBillsDTO,
  SettlementCostTypeDTO,
  PaymentRequestDTO,
  AgentCollectConfirmParam,
  PaymentModeDTO,
  PaymentBillsDTO,
  SingleResponseBillsPlan,
  MenuDTO,
  CashierTemplateDTO,
  BillsPlanDTO,
  LoginRequest,
  SingleResponseTokenVO,
  BaseNotifyOrderNotify,
  BaseNotifyMerchantSignRes,
  BaseNotifyMerchantInfoCheckNotify,
  OpenAccountRequest,
  MerchantCommissionsDTO,
  UserDTO,
  HellowordRequest,
  SingleResponseHellowordResponse,
  WithdrawApplyRpcRequest,
  AccountFlowRpcQuery,
  PageResponseAccountFlowRpcCO,
  MerchantInfoRpcRequest,
  ForCorporateAccRpcRequest,
  SettlementRulePageQuery,
  PageResponseSettlementRuleCO,
  SingleResponseSettlementRuleCO,
  PaymentSettlementPageQuery,
  PageResponsePaymentSettlementCO,
  OrderSettlePageQuery,
  PageResponseOrderSettlementVO,
  SingleResponseOrderSettlementDetailVO,
  RolePageQuery,
  PageResponseRoleVO,
  SingleResponseRoleVO,
  PaymentTransactionTypePageQuery,
  PageResponsePaymentTransactionTypeCO,
  SingleResponseListPaymentTransactionTypeCO,
  SingleResponsePaymentTransactionTypeCO,
  PaymentThirdBillsPageQuery,
  PageResponsePaymentThirdBillsCO,
  SingleResponsePaymentThirdBillsCO,
  SettlementCostTypePageQuery,
  PageResponseSettlementCostTypeCO,
  SingleResponseListSettlementCostTypeCO,
  SingleResponseSettlementCostTypeCO,
  PaymentRequestPageQuery,
  PageResponsePaymentRequestCO,
  MultiResponsePaymentRequestCO,
  SingleResponsePaymentRequestCO,
  PaymentModePageQuery,
  PageResponsePaymentModeCO,
  SingleResponseListPaymentRecBankGroupCO,
  SingleResponseListPaymentModeToBankCO,
  SingleResponsePaymentModeCO,
  PaymentBillsPageQuery,
  PageResponsePaymentBillsCO,
  SingleResponsePaymentBillsCO,
  SingleResponseListMenuTreeVO,
  SingleResponseListMenuRouteVO,
  MenuPageQuery,
  PageResponseMenuVO,
  SingleResponseMenuDetailVO,
  CashierTemplatePageQuery,
  PageResponseCashierTemplateCO,
  SingleResponseCashierTemplateCO,
  number,
  BillsPlanPageQuery,
  PageResponseBillsPlanCO,
  SingleResponseCashierInfoCO,
  SingleResponseBillsPlanCO,
  SingleResponseUserInfo,
  SingleResponseListString,
  AccountingDetailPageQuery,
  PageResponsePaymentAccountDetailCO,
  AccountFlowPageQuery,
  MerchantPageQuery,
  PageResponseMerchantAccountVO,
  AccountPageQuery,
  PageResponsePaymentAccountVO,
  MerchantCommissionsPageQuery,
  PageResponseMerchantCommissionsCO,
  SingleResponseListMerchantCommissionsCO,
  SingleResponseMerchantCommissionsCO,
  UserPageQuery,
  PageResponseUserVO,
  SingleResponseUserVO
} from './payment.type'

/** /修改 */
export function settlementRuleUpdateApi(
  data: SettlementRuleDTO,
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/settlementRule/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /新增 */
export function settlementRuleSaveApi(
  data: SettlementRuleDTO,
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/settlementRule/save`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** 更新角色 */
export function roleUpdateApi(
  data: RoleDTO,
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/role/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** 创建角色 */
export function roleSaveApi(data: RoleDTO, options?: RequestOptions): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/role/save`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** 删除角色 */
export function roleDeleteRoleIdApi(
  { roleId }: { roleId: number },
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/role/delete/${roleId}`,
    method: 'post',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /修改 */
export function paymentTransactionTypeUpdateApi(
  data: PaymentTransactionTypeDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentTransactionType/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /新增 */
export function paymentTransactionTypeSaveApi(
  data: PaymentTransactionTypeDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentTransactionType/save`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /修改 */
export function paymentThirdBillsUpdateApi(
  data: PaymentThirdBillsDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentThirdBills/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /新增 */
export function paymentThirdBillsSaveApi(
  data: PaymentThirdBillsDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentThirdBills/save`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /修改 */
export function paymentSettlementCostTypeUpdateApi(
  data: SettlementCostTypeDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentSettlementCostType/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /新增 */
export function paymentSettlementCostTypeSaveApi(
  data: SettlementCostTypeDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentSettlementCostType/save`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /修改 */
export function paymentRequestUpdateApi(
  data: PaymentRequestDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentRequest/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /新增 */
export function paymentRequestSaveApi(
  data: PaymentRequestDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentRequest/save`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /确认支付 */
export function paymentRequestConfirmPaymentApi(
  data: AgentCollectConfirmParam,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentRequest/confirmPayment`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /修改 */
export function paymentModeUpdateApi(
  data: PaymentModeDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentMode/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /新增 */
export function paymentModeSaveApi(
  data: PaymentModeDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentMode/save`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /修改 */
export function paymentBillsUpdateApi(
  data: PaymentBillsDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentBills/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /新增 */
export function paymentBillsSaveApi(
  data: PaymentBillsDTO,
  options?: RequestOptions
): Promise<SingleResponseBillsPlan> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentBills/save`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** 更新菜单 */
export function menuUpdateApi(
  data: MenuDTO,
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/menu/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** 删除菜单 */
export function menuDeleteMenuIdApi(
  { menuId }: { menuId: number },
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/menu/delete/${menuId}`,
    method: 'post',
    params: {},
    data: {},
    ...requestProps
  })
}

/** 创建菜单 */
export function menuCreateApi(
  data: MenuDTO,
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/menu/create`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /修改 */
export function cashierTemplateUpdateApi(
  data: CashierTemplateDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/cashierTemplate/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /新增 */
export function cashierTemplateSaveApi(
  data: CashierTemplateDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/cashierTemplate/save`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /修改 */
export function billsPlanUpdateApi(
  data: BillsPlanDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/billsPlan/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /新增 */
export function billsPlanSaveApi(
  data: BillsPlanDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/billsPlan/save`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /确定支付 */
export function billsPlanDoPaymentApi(
  data: BillsPlanDTO,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/billsPlan/doPayment`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /退出登录 */
export function authLogoutApi(options?: RequestOptions): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/auth/logout`,
    method: 'post',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /登录 */
export function authLoginApi(
  data: LoginRequest,
  options?: RequestOptions
): Promise<SingleResponseTokenVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/auth/login`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /通联支付提现回调 */
export function allinPayCallbackWithdrawCallbackApi(
  { notify }: { notify: BaseNotifyOrderNotify },
  options?: RequestOptions
): Promise<any> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/allinPay/callback/withdrawCallback`,
    method: 'post',
    params: { ...notify },
    data: {},
    ...requestProps
  })
}

/** /通联支付单笔托管代付回调 */
export function allinPayCallbackSignalAgentPayCallbackApi(
  { notify }: { notify: BaseNotifyOrderNotify },
  options?: RequestOptions
): Promise<any> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/allinPay/callback/signalAgentPayCallback`,
    method: 'post',
    params: { ...notify },
    data: {},
    ...requestProps
  })
}

/** /退款回调 */
export function allinPayCallbackRefundCallbackApi(
  { thirdOrderNo }: { thirdOrderNo: string },
  options?: RequestOptions
): Promise<any> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/allinPay/callback/refundCallback`,
    method: 'post',
    params: { thirdOrderNo },
    data: {},
    ...requestProps
  })
}

/** /退款申请 */
export function allinPayCallbackRefundApplyApi(
  { thirdOrderNo }: { thirdOrderNo: string },
  options?: RequestOptions
): Promise<any> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/allinPay/callback/refundApply`,
    method: 'post',
    params: { thirdOrderNo },
    data: {},
    ...requestProps
  })
}

/** /企业信息签约回调接口 */
export function allinPayCallbackMerchantSignCallbackApi(
  { notify }: { notify: BaseNotifyMerchantSignRes },
  options?: RequestOptions
): Promise<any> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/allinPay/callback/merchantSignCallback`,
    method: 'post',
    params: { ...notify },
    data: {},
    ...requestProps
  })
}

/** /企业信息影像采集回调接口 */
export function allinPayCallbackMerchantInfoPhotoCallbackApi(
  { notify }: { notify: BaseNotifyMerchantInfoCheckNotify },
  options?: RequestOptions
): Promise<any> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/allinPay/callback/merchantInfoPhotoCallback`,
    method: 'post',
    params: { ...notify },
    data: {},
    ...requestProps
  })
}

/** /企业信息设置回调接口 */
export function allinPayCallbackMerchantInfoCheckCallbackApi(
  { notify }: { notify: BaseNotifyMerchantInfoCheckNotify },
  options?: RequestOptions
): Promise<any> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/allinPay/callback/merchantInfoCheckCallback`,
    method: 'post',
    params: { ...notify },
    data: {},
    ...requestProps
  })
}

/** /通联支付托管代收回调 */
export function allinPayCallbackAgentCollectCallbackApi(
  { notify }: { notify: BaseNotifyOrderNotify },
  options?: RequestOptions
): Promise<any> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/allinPay/callback/agentCollectCallback`,
    method: 'post',
    params: { ...notify },
    data: {},
    ...requestProps
  })
}

/** /商户申请开户 */
export function accountOpenAccountApi(
  data: OpenAccountRequest,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/account/openAccount`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /修改 */
export function merchantCommissionsUpdateApi(
  data: MerchantCommissionsDTO,
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/MerchantCommissions/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /新增 */
export function merchantCommissionsSaveApi(
  data: MerchantCommissionsDTO,
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/MerchantCommissions/save`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** 更新用户 */
export function userUpdateApi(
  data: UserDTO,
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/user/update`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** 更新用户状态 */
export function userStatusUserIdStatusApi(
  { userId, status }: { userId: number; status: number },
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/user/status/${userId}/${status}`,
    method: 'post',
    params: {},
    data: {},
    ...requestProps
  })
}

/** 重置密码 */
export function userResetPasswordUserIdApi(
  { userId, password }: { userId: number; password: string },
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/user/resetPassword/${userId}`,
    method: 'post',
    params: { password },
    data: {},
    ...requestProps
  })
}

/** 删除用户 */
export function userDeleteUserIdApi(
  { userId }: { userId: number },
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/user/delete/${userId}`,
    method: 'post',
    params: {},
    data: {},
    ...requestProps
  })
}

/** 创建用户 */
export function userCreateApi(
  data: UserDTO,
  options?: RequestOptions
): Promise<SingleResponseVoid> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/user/create`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/**  */
export function paymentV1DemoUsersApi(
  data: HellowordRequest,
  options?: RequestOptions
): Promise<SingleResponseHellowordResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/users`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** 提现 */
export function paymentV1DemoTestWithDrawApi(
  data: WithdrawApplyRpcRequest,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/testWithDraw`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** 查询账户流水 */
export function paymentV1DemoTestQueryFlowApi(
  data: AccountFlowRpcQuery,
  options?: RequestOptions
): Promise<PageResponseAccountFlowRpcCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/testQueryFlow`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** 设置企业信息 */
export function paymentV1DemoSetMerchantInfoApi(
  data: MerchantInfoRpcRequest,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/setMerchantInfo`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** 查询企业信息 */
export function paymentV1DemoQueryMerchantInfoApi(
  { merchantNo }: { merchantNo: number },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/queryMerchantInfo`,
    method: 'post',
    params: { merchantNo },
    data: {},
    ...requestProps
  })
}

/** 查询对公户信息 */
export function paymentV1DemoGetCorInfoApi(
  { merchantNo }: { merchantNo: number },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/getCorInfo`,
    method: 'post',
    params: { merchantNo },
    data: {},
    ...requestProps
  })
}

/** 绑定手机发送验证码 */
export function paymentV1DemoBindSendCodeApi(
  {
    merchantNo,
    phone,
    verificationCodeType
  }: { merchantNo: number; phone: string; verificationCodeType: number },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/bindSendCode`,
    method: 'post',
    params: { verificationCodeType, phone, merchantNo },
    data: {},
    ...requestProps
  })
}

/** 绑定手机 */
export function paymentV1DemoBindPhoneApi(
  { merchantNo, phone, code }: { merchantNo: number; phone: string; code: string },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/bindPhone`,
    method: 'post',
    params: { code, phone, merchantNo },
    data: {},
    ...requestProps
  })
}

/** 新增对公户 */
export function paymentV1DemoAddCorporateAccountApi(
  data: ForCorporateAccRpcRequest,
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/addCorporateAccount`,
    method: 'post',
    params: {},
    data: data,
    ...requestProps
  })
}

/** /分页查询 */
export function settlementRuleListByPageApi(
  { pageQuery }: { pageQuery: SettlementRulePageQuery },
  options?: RequestOptions
): Promise<PageResponseSettlementRuleCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/settlementRule/listByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /根据id查询单条数据 */
export function settlementRuleGetByIdApi(
  { id }: { id: number },
  options?: RequestOptions
): Promise<SingleResponseSettlementRuleCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/settlementRule/getById`,
    method: 'get',
    params: { id },
    data: {},
    ...requestProps
  })
}

/** /清分明细-入账前置&分账管理 */
export function settlementSettleListApi(
  { pageQuery }: { pageQuery: PaymentSettlementPageQuery },
  options?: RequestOptions
): Promise<PageResponsePaymentSettlementCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/settlement/settleList`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /订单清算结果列表 */
export function settlementOrderSetttleListApi(
  { pageQuery }: { pageQuery: OrderSettlePageQuery },
  options?: RequestOptions
): Promise<PageResponseOrderSettlementVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/settlement/orderSetttleList`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /订单清算结果详情 */
export function settlementOrderSetttleDetailApi(
  { payOrderNo }: { payOrderNo: string },
  options?: RequestOptions
): Promise<SingleResponseOrderSettlementDetailVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/settlement/orderSetttleDetail`,
    method: 'get',
    params: { payOrderNo },
    data: {},
    ...requestProps
  })
}

/** /清算 */
export function settlementLiquidationApi(
  { payOrderNo, ruleId }: { payOrderNo: number; ruleId: number },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/settlement/liquidation`,
    method: 'get',
    params: { ruleId, payOrderNo },
    data: {},
    ...requestProps
  })
}

/** 获取角色列表 */
export function roleListApi(
  { rolePage }: { rolePage: RolePageQuery },
  options?: RequestOptions
): Promise<PageResponseRoleVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/role/list`,
    method: 'get',
    params: { ...rolePage },
    data: {},
    ...requestProps
  })
}

/** 获取角色详情 */
export function roleGetRoleByIdRoleIdApi(
  { roleId }: { roleId: number },
  options?: RequestOptions
): Promise<SingleResponseRoleVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/role/getRoleById/${roleId}`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /分页查询 */
export function paymentTransactionTypeListByPageApi(
  { pageQuery }: { pageQuery: PaymentTransactionTypePageQuery },
  options?: RequestOptions
): Promise<PageResponsePaymentTransactionTypeCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentTransactionType/listByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /查询全部交易类型 */
export function paymentTransactionTypeListAllApi(
  options?: RequestOptions
): Promise<SingleResponseListPaymentTransactionTypeCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentTransactionType/listAll`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /根据id查询单条数据 */
export function paymentTransactionTypeGetByIdApi(
  { id }: { id: number },
  options?: RequestOptions
): Promise<SingleResponsePaymentTransactionTypeCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentTransactionType/getById`,
    method: 'get',
    params: { id },
    data: {},
    ...requestProps
  })
}

/** /分页查询 */
export function paymentThirdBillsListByPageApi(
  { pageQuery }: { pageQuery: PaymentThirdBillsPageQuery },
  options?: RequestOptions
): Promise<PageResponsePaymentThirdBillsCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentThirdBills/listByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /根据id查询单条数据 */
export function paymentThirdBillsGetByIdApi(
  { id }: { id: number },
  options?: RequestOptions
): Promise<SingleResponsePaymentThirdBillsCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentThirdBills/getById`,
    method: 'get',
    params: { id },
    data: {},
    ...requestProps
  })
}

/** /分页查询 */
export function paymentSettlementCostTypeListByPageApi(
  { pageQuery }: { pageQuery: SettlementCostTypePageQuery },
  options?: RequestOptions
): Promise<PageResponseSettlementCostTypeCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentSettlementCostType/listByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /查询全部费用类型 */
export function paymentSettlementCostTypeListAllApi(
  options?: RequestOptions
): Promise<SingleResponseListSettlementCostTypeCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentSettlementCostType/listAll`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /根据id查询单条数据 */
export function paymentSettlementCostTypeGetByIdApi(
  { id }: { id: number },
  options?: RequestOptions
): Promise<SingleResponseSettlementCostTypeCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentSettlementCostType/getById`,
    method: 'get',
    params: { id },
    data: {},
    ...requestProps
  })
}

/** /分页查询 */
export function paymentRequestListByPageApi(
  { pageQuery }: { pageQuery: PaymentRequestPageQuery },
  options?: RequestOptions
): Promise<PageResponsePaymentRequestCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentRequest/listByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /根据paymentPlanId查询支付请求 */
export function paymentRequestGetDetailApi(
  { paymentPlanId }: { paymentPlanId: number },
  options?: RequestOptions
): Promise<MultiResponsePaymentRequestCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentRequest/getDetail`,
    method: 'get',
    params: { paymentPlanId },
    data: {},
    ...requestProps
  })
}

/** /根据id查询单条数据 */
export function paymentRequestGetByIdApi(
  { id }: { id: number },
  options?: RequestOptions
): Promise<SingleResponsePaymentRequestCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentRequest/getById`,
    method: 'get',
    params: { id },
    data: {},
    ...requestProps
  })
}

/** /分页查询 */
export function paymentModeListByPageApi(
  { pageQuery }: { pageQuery: PaymentModePageQuery },
  options?: RequestOptions
): Promise<PageResponsePaymentModeCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentMode/listByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /银行列表 */
export function paymentModeListBankApi(
  options?: RequestOptions
): Promise<SingleResponseListPaymentRecBankGroupCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentMode/listBank`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /查询全部支付方式 */
export function paymentModeListAllApi(
  options?: RequestOptions
): Promise<SingleResponseListPaymentModeToBankCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentMode/listAll`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /根据id查询单条数据 */
export function paymentModeGetByIdApi(
  { id }: { id: number },
  options?: RequestOptions
): Promise<SingleResponsePaymentModeCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentMode/getById`,
    method: 'get',
    params: { id },
    data: {},
    ...requestProps
  })
}

/** /分页查询 */
export function paymentBillsListByPageApi(
  { pageQuery }: { pageQuery: PaymentBillsPageQuery },
  options?: RequestOptions
): Promise<PageResponsePaymentBillsCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentBills/listByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /根据id查询单条数据 */
export function paymentBillsGetByIdApi(
  { id }: { id: number },
  options?: RequestOptions
): Promise<SingleResponsePaymentBillsCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/paymentBills/getById`,
    method: 'get',
    params: { id },
    data: {},
    ...requestProps
  })
}

/** 获取菜单树 */
export function menuTreeApi(
  { roleId }: { roleId?: number },
  options?: RequestOptions
): Promise<SingleResponseListMenuTreeVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/menu/tree`,
    method: 'get',
    params: { roleId },
    data: {},
    ...requestProps
  })
}

/** 获取用户菜单路由 */
export function menuRoutesApi(options?: RequestOptions): Promise<SingleResponseListMenuRouteVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/menu/routes`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** 分页查询菜单列表 */
export function menuListApi(
  { menuPageQuery }: { menuPageQuery: MenuPageQuery },
  options?: RequestOptions
): Promise<PageResponseMenuVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/menu/list`,
    method: 'get',
    params: { ...menuPageQuery },
    data: {},
    ...requestProps
  })
}

/** 获取菜单详情 */
export function menuGetDetailMenuIdApi(
  { menuId }: { menuId: number },
  options?: RequestOptions
): Promise<SingleResponseMenuDetailVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/menu/getDetail/${menuId}`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /渠道类型数据 */
export function dicAllChannelTypeApi(options?: RequestOptions): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/dic/allChannelType`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /账户类型数据 */
export function dicAllAccountTypeApi(options?: RequestOptions): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/dic/allAccountType`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /分页查询 */
export function cashierTemplateListByPageApi(
  { pageQuery }: { pageQuery: CashierTemplatePageQuery },
  options?: RequestOptions
): Promise<PageResponseCashierTemplateCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/cashierTemplate/listByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /根据id查询单条数据 */
export function cashierTemplateGetByIdApi(
  { id }: { id: number },
  options?: RequestOptions
): Promise<SingleResponseCashierTemplateCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/cashierTemplate/getById`,
    method: 'get',
    params: { id },
    data: {},
    ...requestProps
  })
}

/** /查询银行卡列表 */
export function cashierTemplateGetBankListApi(
  { bankType }: { bankType: number[] },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/cashierTemplate/getBankList`,
    method: 'get',
    params: { ...bankType },
    data: {},
    ...requestProps
  })
}

/** /分页查询 */
export function billsPlanListByPageApi(
  { pageQuery }: { pageQuery: BillsPlanPageQuery },
  options?: RequestOptions
): Promise<PageResponseBillsPlanCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/billsPlan/listByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /获取收银台信息 */
export function billsPlanGetCashierInfoApi(
  { paymentPlanId, paymentType }: { paymentPlanId: number; paymentType: string },
  options?: RequestOptions
): Promise<SingleResponseCashierInfoCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/billsPlan/getCashierInfo`,
    method: 'get',
    params: { paymentType, paymentPlanId },
    data: {},
    ...requestProps
  })
}

/** /根据id查询单条数据 */
export function billsPlanGetByIdApi(
  { id }: { id: number },
  options?: RequestOptions
): Promise<SingleResponseBillsPlanCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/billsPlan/getById`,
    method: 'get',
    params: { id },
    data: {},
    ...requestProps
  })
}

/** /根据id查询单条数据 */
export function billsPlanGetByBusinessOrderIdApi(
  { businessOrderId }: { businessOrderId: number },
  options?: RequestOptions
): Promise<SingleResponseBillsPlanCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/billsPlan/getByBusinessOrderId`,
    method: 'get',
    params: { businessOrderId },
    data: {},
    ...requestProps
  })
}

/** /获取用户信息 */
export function authUserInfoApi(options?: RequestOptions): Promise<SingleResponseUserInfo> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/auth/userInfo`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /获取用户的权限 */
export function authGetUserPermsApi(options?: RequestOptions): Promise<SingleResponseListString> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/auth/getUserPerms`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /测试回调 */
export function allinPayCallbackTestCallbackApi(options?: RequestOptions): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/allinPay/callback/testCallback`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /入账请求列表 */
export function accountingDetailListAccountingDetailByPageApi(
  { pageQuery }: { pageQuery: AccountingDetailPageQuery },
  options?: RequestOptions
): Promise<PageResponsePaymentAccountDetailCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/accountingDetail/listAccountingDetailByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /入账记录 */
export function accountingDetailAccountingRecordApi(
  { settleNo }: { settleNo: number },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/accountingDetail/accountingRecord`,
    method: 'get',
    params: { settleNo },
    data: {},
    ...requestProps
  })
}

/** /账户流水查询 */
export function accountQueryAccountFlowApi(
  { query }: { query: AccountFlowPageQuery },
  options?: RequestOptions
): Promise<PageResponsePaymentAccountDetailCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/account/queryAccountFlow`,
    method: 'get',
    params: { ...query },
    data: {},
    ...requestProps
  })
}

/** /商户开户列表 */
export function accountListMerchantByPageApi(
  { pageQuery }: { pageQuery: MerchantPageQuery },
  options?: RequestOptions
): Promise<PageResponseMerchantAccountVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/account/listMerchantByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /账户管理列表 */
export function accountListAccountsByPageApi(
  { pageQuery }: { pageQuery: AccountPageQuery },
  options?: RequestOptions
): Promise<PageResponsePaymentAccountVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/account/listAccountsByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /分页查询 */
export function merchantCommissionsListByPageApi(
  { pageQuery }: { pageQuery: MerchantCommissionsPageQuery },
  options?: RequestOptions
): Promise<PageResponseMerchantCommissionsCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/MerchantCommissions/listByPage`,
    method: 'get',
    params: { ...pageQuery },
    data: {},
    ...requestProps
  })
}

/** /查询全部抽佣配置 */
export function merchantCommissionsListAllApi(
  options?: RequestOptions
): Promise<SingleResponseListMerchantCommissionsCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/MerchantCommissions/listAll`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** /根据id查询单条数据 */
export function merchantCommissionsGetByIdIdApi(
  { id }: { id: number },
  options?: RequestOptions
): Promise<SingleResponseMerchantCommissionsCO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/${apiVersion}/MerchantCommissions/getById/${id}`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** 分页查询用户列表 */
export function userListApi(
  { userPageQuery }: { userPageQuery: UserPageQuery },
  options?: RequestOptions
): Promise<PageResponseUserVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/user/list`,
    method: 'get',
    params: { ...userPageQuery },
    data: {},
    ...requestProps
  })
}

/** 获取用户详情 */
export function userDetailUserIdApi(
  { userId }: { userId: number },
  options?: RequestOptions
): Promise<SingleResponseUserVO> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/user/detail/${userId}`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** 提现签约 */
export function paymentV1DemoWithdrawContractApi(
  { merchantNo }: { merchantNo: number },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/withdrawContract`,
    method: 'get',
    params: { merchantNo },
    data: {},
    ...requestProps
  })
}

/** 确认提现 */
export function paymentV1DemoTestWithdrawConfirmApi(
  { withdrawApplyId, code }: { withdrawApplyId: number; code: string },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/testWithdrawConfirm`,
    method: 'get',
    params: { code, withdrawApplyId },
    data: {},
    ...requestProps
  })
}

/**  */
export function paymentV1DemoTestMQApi(
  { msg }: { msg: string },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/testMQ`,
    method: 'get',
    params: { msg },
    data: {},
    ...requestProps
  })
}

/**  */
export function paymentV1DemoTestDelayWithdrawApi(
  { withdrawId, delayLevel }: { withdrawId: number; delayLevel: number },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/testDelayWithdraw`,
    method: 'get',
    params: { delayLevel, withdrawId },
    data: {},
    ...requestProps
  })
}

/** 对账 */
export function paymentV1DemoReconciliationApi(
  { date }: { date: string },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/reconciliation`,
    method: 'get',
    params: { date },
    data: {},
    ...requestProps
  })
}

/** 查询省市 */
export function paymentV1DemoQueryProvinceCityApi(
  { provinceCode }: { provinceCode: string },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/queryProvinceCity`,
    method: 'get',
    params: { provinceCode },
    data: {},
    ...requestProps
  })
}

/** 通联账户收支明细 */
export function paymentV1DemoQueryInExpDetailApi(
  { bizUserId, startDate, endDate }: { bizUserId: string; startDate: string; endDate: string },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/queryInExpDetail`,
    method: 'get',
    params: { endDate, startDate, bizUserId },
    data: {},
    ...requestProps
  })
}

/** 查询对公银行列表 */
export function paymentV1DemoQueryForCorBankApi(options?: RequestOptions): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/queryForCorBank`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** 查询三方证件信息列表 */
export function paymentV1DemoQueryCertificateDictApi(
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/queryCertificateDict`,
    method: 'get',
    params: {},
    data: {},
    ...requestProps
  })
}

/** 通联订单分账明细查询 */
export function paymentV1DemoOrderSplitRuleListDetailApi(
  { bizOrderNo }: { bizOrderNo: string },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/orderSplitRuleListDetail`,
    method: 'get',
    params: { bizOrderNo },
    data: {},
    ...requestProps
  })
}

/** 通联订单状态查询 */
export function paymentV1DemoOrderQueryApi(
  { bizOrderNo }: { bizOrderNo: string },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/orderQuery`,
    method: 'get',
    params: { bizOrderNo },
    data: {},
    ...requestProps
  })
}

/** 商家状态 */
export function paymentV1DemoMerchantStateApi(
  { merchantNo }: { merchantNo: number },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/merchantState`,
    method: 'get',
    params: { merchantNo },
    data: {},
    ...requestProps
  })
}

/** 对账文件下载 */
export function paymentV1DemoDownloadReconFileApi(
  { date, fileType }: { date: string; fileType: number },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/downloadReconFile`,
    method: 'get',
    params: { fileType, date },
    data: {},
    ...requestProps
  })
}

/** 通联平台账户集余额查询 */
export function paymentV1DemoBalanceForPlatformApi(
  { accountSetNo }: { accountSetNo: string },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/balanceForPlatform`,
    method: 'get',
    params: { accountSetNo },
    data: {},
    ...requestProps
  })
}

/** 通联账户余额查询 */
export function paymentV1DemoBalanceForMerchantApi(
  { bizUserId, accountSetNo }: { bizUserId: string; accountSetNo: string },
  options?: RequestOptions
): Promise<SingleResponse> {
  const { requestProps = {}, apiVersion = 'v1' } = options || {}
  return http.request({
    url: `/biz.payment/payment/v1/demo/balanceForMerchant`,
    method: 'get',
    params: { accountSetNo, bizUserId },
    data: {},
    ...requestProps
  })
}
